﻿using System;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace AccessControl.SecurityMonitoring.Form
{
    public partial class MDIForm : XtraForm
    {
        public MDIForm()
        {
            InitializeComponent();
        }

        private void MDIForm_Load(object sender, System.EventArgs e)
        {
            try{
                var mainForm = new Monitoring {MdiParent = this};
                mainForm.Show();

                var viewAllPerson = new ViewAllPerson {MdiParent = this};
                viewAllPerson.Show();

                var report = new ManagementReport.Form.Report{MdiParent = this};
                report.Show();

                mainForm.Focus();
            }
            catch (Exception ex){
                XtraMessageBox.Show(this, ex.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}